//
//  VIPCardReturnCashModel.m
//  NeusoftHBSJSober
//
//  Created by Apple-21 on 15/11/10.
//  Copyright (c) 2015年 com.neusoftsober. All rights reserved.
//

#import "VIPCardReturnCashModel.h"

@implementation VIPCardReturnCashModel

@end
@implementation VIPCardHttpResult

- (id)getVipCardListWithDictionary:(NSDictionary *)dict {

    if (dict) {
        VIPCardReturnCashModel *model = [[VIPCardReturnCashModel alloc]init];
        NSString *string1 = [dict[@"CreateTime"] stringByReplacingOccurrencesOfString:@"T" withString:@""];
        NSString *string2 = [string1 substringToIndex:18];
        model.createTime = string2;
        model.money = [((NSNumber *)dict[@"Money"]) stringValue];
        model.operate = (dict[@"Operate"] == [NSNull null]) ? @"" :dict[@"Operate"];
        model.returnPercent = [((NSNumber *)dict[@"ReturnPercent"]) stringValue];
        model.type = [((NSNumber *)dict[@"Type"]) stringValue];
        model.userUserID = [((NSNumber *)dict[@"UseUserID"]) stringValue];
        model.userUserName = (dict[@"UseUsername"] == [NSNull null]) ? @"" :dict[@"UseUsername"];
        model.userID = [((NSNumber *)dict[@"UserID"]) stringValue];
        model.userName = (dict[@"Username"] == [NSNull null]) ? @"" :dict[@"Username"];
        
        return model;
        
    }
    return nil;
}
- (id)getVipCardListWithArray:(NSArray *)array{

    NSMutableArray *data = [NSMutableArray array];
    
    for (NSDictionary *dict in array) {
        [data addObject:[self getVipCardListWithDictionary:dict]];
    }
    return data;
}

@end